<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"/>
<div class="ui grid">
	<div class="row">
		<div class="column">
			<div class="ui two column grid">
				<div class="three wide column">
					<jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
						<jsp:param name="index" value="101"/>
					</jsp:include>
				</div>
				<div id="container" class="thirteen wide column">
					<ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li><a href="/support/authentication">会员管理</a></li>
						<li class="active">身份认证</li>
					</ol>
					 <ul class="nav nav-pills" role="tablist">
                        <li role="presentation" class="active"><a href="/user/add">录入用户</a></li>
                    </ul><br/>
                    <form class="" role="search">
                        <div class="panel panel-default">
                            <div class="panel-body">
                                <div class="clearfix">
                                <div class="form-group w500 pull-left">
                                    <input type="text" class="form-control" name="kw" value="${not empty param.kw ? param.kw : ''}" placeholder="请输入手机或邮箱">
                                </div>
                                <button type="submit" class="btn btn-default ml10">搜索</button>
                                </div>
                                <div class="mt5 pull-left">
                                    <span>状态：</span>
                                    <a class="btn btn-${cStatus == -1 ? 'success':'default'}" value="-1" href="/support/-1/authentication?kw=${param.kw}">全部</a>
                                    <a class="btn btn-${cStatus == 0 ? 'success' :'default'}"  href="/support/0/authentication?kw=${param.kw}">待审核</a>
                                    <a class="btn btn-${cStatus == 1 ? 'success' :'default'}"  href="/support/1/authentication?kw=${param.kw}">审核通过</a>
                                    <a class="btn btn-${cStatus == 2 ? 'success' :'default'}"  href="/support/2/authentication?kw=${param.kw}">审核未通过</a>
                                </div>
                                <div class="pull-right pt20">
                                    <p class=""><a href="javascript:;" onclick="excelDown()"><i class="glyphicon glyphicon-download-alt f16"></i>下载</a></p>
                                </div>
                            </div>
                        </div>
                    </form>

					<table class="table table-hover">
						<thead>
						<tr>
							<th>ID</th>
							<th>昵称</th>
							<th>真实姓名</th>
							<th>注册时间</th>
							<th>申请时间</th>
							<th>审核状态</th>
                            <th>操作</th>
						</tr>
						</thead>
						<tbody>
						<c:forEach items="${paginate.pageList}" var="employee">
							<tr>
								<td><a href="/support/authentication/${employee.id}" target="_blank">${employee.id}</a></td>
								<td>${employee.nickName}</td>
								<td>${employee.realName}</td>
								<td><fmt:formatDate value="${employee.createTime}" pattern="yyyy-MM-dd"/></td>
								<td><fmt:formatDate value="${employee.applicationPeriod}" pattern="yyyy-MM-dd"/></td>
								<td>
								    <c:choose>
                                        <c:when test="${empty employee.cStatus}">
                                            <span class="warning">
                                        </c:when>
                                        <c:when test="${employee.cStatus == 0}">
                                            <span class="orange">
                                        </c:when>
                                        <c:when test="${employee.cStatus == 1}">
                                            <span class="green">
                                        </c:when>
                                        <c:when test="${employee.cStatus == 2}">
                                            <span class="red">
                                        </c:when>
                                        <c:otherwise>
                                            <span>
                                        </c:otherwise>
								    </c:choose>
                                    ${employee.CStatusStr}</span>
                                </td>
								<td> <a class="btn btn-info js_broadcast" href="/support/authentication/${employee.id}" target="_blank">详情</a></td>
							</tr>
						</c:forEach>
						</tbody>
					</table>
                    <div class="page-info clearfix">
                        <jsp:include page="/WEB-INF/jsp/common/_page.jsp"/>
                    </div>
				</div>
			</div>
		</div>
	</div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"/>
<script type="text/javascript" src="/static/js/support/authentication.js"></script>




